home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / N-P / Open Prolog 1.02.sit / Open Prolog 1.02 / External Predicates… / Sources / countHLE.p next >
MacBinary  |  1993-04-15  |  3.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Apr 15 23:11:49 1993, modified Thu Apr 15 23:11:49 1993, creator 'MPS ', type ASCII, 3386 bytes "countHLE.p" , at 0xdba 354 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 63 6f 75 6e 74 48 | 4c 45 2e 70 00 00 00 00 |..countH|LE.p....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 0d 3a 00 | 00 01 62 a7 f3 d4 75 a7 |......:.|..b...u.|
|00000060| f3 d4 75 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..u.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e5 a8 00 00 |........|........|
|00000080| 7b 24 44 2b 7d 20 7b 20 | 4d 61 63 73 42 75 67 20 |{$D+} { |MacsBug |
|00000090| 73 79 6d 62 6f 6c 73 20 | 6f 6e 20 7d 0d 7b 24 52 |symbols |on }.{$R|
|000000a0| 2d 7d 20 7b 20 4e 6f 20 | 72 61 6e 67 65 20 63 68 |-} { No |range ch|
|000000b0| 65 63 6b 69 6e 67 20 7d | 0d 0d 55 4e 49 54 20 63 |ecking }|..UNIT c|
|000000c0| 6f 75 6e 74 48 4c 45 3b | 0d 0d 20 20 49 4e 54 45 |ountHLE;|.. INTE|
|000000d0| 52 46 41 43 45 0d 0d 20 | 20 20 20 55 53 45 53 20 |RFACE.. | USES |
|000000e0| 6d 65 6d 74 79 70 65 73 | 2c 20 71 75 69 63 6b 64 |memtypes|, quickd|
|000000f0| 72 61 77 2c 20 61 70 70 | 6c 65 45 76 65 6e 74 73 |raw, app|leEvents|
|00000100| 2c 20 6f 73 69 6e 74 66 | 2c 20 74 6f 6f 6c 69 6e |, osintf|, toolin|
|00000110| 74 66 2c 20 70 61 63 6b | 69 6e 74 66 2c 0d 20 20 |tf, pack|intf,. |
|00000120| 20 20 20 20 20 20 20 70 | 72 6c 78 64 65 66 69 6e | p|rlxdefin|
|00000130| 69 74 69 6f 6e 73 2c 20 | 70 72 6c 78 4c 69 62 72 |itions, |prlxLibr|
|00000140| 61 72 69 65 73 3b 0d 0d | 20 20 20 20 50 52 4f 43 |aries;..| PROC|
|00000150| 45 44 55 52 45 20 65 6e | 74 72 79 70 6f 69 6e 74 |EDURE en|trypoint|
|00000160| 28 70 6c 69 73 74 3a 20 | 70 72 6c 78 70 74 72 29 |(plist: |prlxptr)|
|00000170| 3b 0d 0d 20 20 49 4d 50 | 4c 45 4d 45 4e 54 41 54 |;.. IMP|LEMENTAT|
|00000180| 49 4f 4e 0d 0d 20 20 20 | 20 54 59 50 45 0d 20 20 |ION.. | TYPE. |
|00000190| 20 20 20 20 65 76 65 6e | 74 50 74 72 20 3d 20 5e | even|tPtr = ^|
|000001a0| 65 76 65 6e 74 52 65 63 | 6f 72 64 3b 0d 20 20 20 |eventRec|ord;. |
|000001b0| 20 20 20 6c 6f 6e 67 69 | 6e 74 48 20 3d 20 5e 6c | longi|ntH = ^l|
|000001c0| 6f 6e 67 69 6e 74 50 3b | 0d 20 20 20 20 20 20 6c |ongintP;|. l|
|000001d0| 6f 6e 67 69 6e 74 50 20 | 3d 20 5e 6c 6f 6e 67 69 |ongintP |= ^longi|
|000001e0| 6e 74 3b 0d 0d 20 20 20 | 20 50 52 4f 43 45 44 55 |nt;.. | PROCEDU|
|000001f0| 52 45 20 6d 61 69 6e 28 | 70 6c 69 73 74 3a 20 70 |RE main(|plist: p|
|00000200| 72 6c 78 70 74 72 29 3b | 0d 20 20 20 20 20 20 46 |rlxptr);|. F|
|00000210| 4f 52 57 41 52 44 3b 0d | 0d 20 20 20 20 50 52 4f |ORWARD;.|. PRO|
|00000220| 43 45 44 55 52 45 20 65 | 6e 74 72 79 70 6f 69 6e |CEDURE e|ntrypoin|
|00000230| 74 28 70 6c 69 73 74 3a | 20 70 72 6c 78 70 74 72 |t(plist:| prlxptr|
|00000240| 29 3b 0d 0d 20 20 20 20 | 20 20 42 45 47 49 4e 0d |);.. | BEGIN.|
|00000250| 20 20 20 20 20 20 20 20 | 6d 61 69 6e 28 70 6c 69 | |main(pli|
|00000260| 73 74 29 3b 0d 20 20 20 | 20 20 20 45 4e 44 3b 0d |st);. | END;.|
|00000270| 0d 20 20 20 20 46 55 4e | 43 54 49 4f 4e 20 65 76 |. FUN|CTION ev|
|00000280| 65 6e 74 43 6f 75 6e 74 | 65 72 28 6d 79 44 61 74 |entCount|er(myDat|
|00000290| 61 3a 20 6c 6f 6e 67 69 | 6e 74 48 3b 0d 20 20 20 |a: longi|ntH;. |
|000002a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002b0| 20 20 20 20 20 20 20 74 | 68 65 45 76 65 6e 74 3a | t|heEvent:|
|000002c0| 20 65 76 65 6e 74 50 74 | 72 29 3a 20 6c 6f 6e 67 | eventPt|r): long|
|000002d0| 69 6e 74 3b 0d 0d 20 20 | 20 20 20 20 42 45 47 49 |int;.. | BEGI|
|000002e0| 4e 0d 0d 20 20 20 20 20 | 20 20 20 49 46 20 4f 53 |N.. | IF OS|
|000002f0| 54 79 70 65 28 74 68 65 | 45 76 65 6e 74 5e 2e 6d |Type(the|Event^.m|
|00000300| 65 73 73 61 67 65 29 20 | 3d 20 6b 43 6f 72 65 45 |essage) |= kCoreE|
|00000310| 76 65 6e 74 43 6c 61 73 | 73 20 54 48 45 4e 0d 20 |ventClas|s THEN. |
|00000320| 20 20 20 20 20 20 20 20 | 20 6d 79 44 61 74 61 5e | | myData^|
|00000330| 5e 20 3a 3d 20 6d 79 44 | 61 74 61 5e 5e 20 2b 20 |^ := myD|ata^^ + |
|00000340| 31 3b 0d 0d 20 20 20 20 | 20 20 20 20 65 76 65 6e |1;.. | even|
|00000350| 74 43 6f 75 6e 74 65 72 | 20 3a 3d 20 6d 65 73 73 |tCounter| := mess|
|00000360| 61 67 65 4e 6f 52 65 70 | 6c 79 3b 0d 0d 20 20 20 |ageNoRep|ly;.. |
|00000370| 20 20 20 20 20 7b 73 65 | 6e 64 20 6d 65 73 73 61 | {se|nd messa|
|00000380| 67 65 4e 6f 52 65 70 6c | 79 20 62 61 63 6b 20 74 |geNoRepl|y back t|
|00000390| 6f 20 61 6c 6c 6f 77 20 | 74 68 65 20 65 76 65 6e |o allow |the even|
|000003a0| 74 20 74 6f 20 62 65 20 | 70 72 6f 63 65 73 73 65 |t to be |processe|
|000003b0| 64 20 6e 6f 72 6d 61 6c | 6c 79 7d 0d 7b 61 6e 79 |d normal|ly}.{any|
|000003c0| 20 6f 74 68 65 72 20 72 | 65 70 6c 79 20 77 69 6c | other r|eply wil|
|000003d0| 6c 20 62 79 70 61 73 73 | 20 6e 6f 72 6d 61 6c 20 |l bypass| normal |
|000003e0| 65 76 65 6e 74 20 70 72 | 6f 63 65 73 73 69 6e 67 |event pr|ocessing|
|000003f0| 20 61 6e 64 20 77 69 6c | 6c 20 62 65 20 74 68 65 | and wil|l be the|
|00000400| 20 6f 75 74 70 75 74 20 | 6f 66 20 74 68 65 20 75 | output |of the u|
|00000410| 73 65 72 20 69 6e 74 65 | 72 66 61 63 65 20 6c 6f |ser inte|rface lo|
|00000420| 6f 70 7d 0d 20 20 20 20 | 20 20 20 20 7b 61 20 62 |op}. | {a b|
|00000430| 65 6e 69 67 6e 20 72 65 | 70 6c 79 20 66 6f 72 20 |enign re|ply for |
|00000440| 61 6e 20 65 76 65 6e 74 | 20 79 6f 75 20 75 73 65 |an event| you use|
|00000450| 20 75 70 20 77 6f 75 6c | 64 20 62 65 20 27 6d 65 | up woul|d be 'me|
|00000460| 73 73 61 67 65 4f 4b 27 | 7d 0d 0d 20 20 20 20 20 |ssageOK'|}.. |
|00000470| 20 45 4e 44 3b 0d 0d 20 | 20 20 20 50 52 4f 43 45 | END;.. | PROCE|
|00000480| 44 55 52 45 20 6d 61 69 | 6e 3b 0d 0d 20 20 20 20 |DURE mai|n;.. |
|00000490| 20 20 54 59 50 45 0d 20 | 20 20 20 20 20 20 20 69 | TYPE. | i|
|000004a0| 6e 74 65 67 65 72 48 61 | 6e 64 6c 65 20 3d 20 5e |ntegerHa|ndle = ^|
|000004b0| 69 6e 74 65 67 65 72 50 | 74 72 3b 0d 20 20 20 20 |integerP|tr;. |
|000004c0| 20 20 20 20 69 6e 74 65 | 67 65 72 50 74 72 20 3d | inte|gerPtr =|
|000004d0| 20 5e 69 6e 74 65 67 65 | 72 3b 0d 20 20 20 20 20 | ^intege|r;. |
|000004e0| 20 20 20 6c 6f 6e 67 69 | 6e 74 48 61 6e 64 6c 65 | longi|ntHandle|
|000004f0| 20 3d 20 5e 6c 6f 6e 67 | 69 6e 74 50 74 72 3b 0d | = ^long|intPtr;.|
|00000500| 20 20 20 20 20 20 20 20 | 6c 6f 6e 67 69 6e 74 50 | |longintP|
|00000510| 74 72 20 3d 20 5e 6c 6f | 6e 67 69 6e 74 3b 0d 0d |tr = ^lo|ngint;..|
|00000520| 20 20 20 20 20 20 56 41 | 52 0d 20 20 20 20 20 20 | VA|R. |
|00000530| 20 20 6e 75 6d 62 65 72 | 4f 66 4d 65 6e 75 73 2c | number|OfMenus,|
|00000540| 20 69 3a 20 69 6e 74 65 | 67 65 72 3b 0d 20 20 20 | i: inte|ger;. |
|00000550| 20 20 20 20 20 74 68 65 | 4d 65 6e 75 48 61 6e 64 | the|MenuHand|
|00000560| 6c 65 3a 20 6d 65 6e 75 | 48 61 6e 64 6c 65 3b 0d |le: menu|Handle;.|
|00000570| 20 20 20 20 20 20 20 20 | 74 68 65 4d 65 6e 75 4c | |theMenuL|
|00000580| 69 73 74 3a 20 68 61 6e | 64 6c 65 3b 0d 20 20 20 |ist: han|dle;. |
|00000590| 20 20 20 20 20 74 3a 20 | 73 74 72 32 35 35 3b 0d | t: |str255;.|
|000005a0| 20 20 20 20 20 20 20 20 | 74 31 3a 20 70 74 72 3b | |t1: ptr;|
|000005b0| 0d 20 20 20 20 20 20 20 | 20 74 32 3a 20 6c 6f 6e |. | t2: lon|
|000005c0| 67 69 6e 74 3b 0d 20 20 | 20 20 20 20 20 20 6d 65 |gint;. | me|
|000005d0| 6e 75 45 78 69 73 74 73 | 3a 20 62 6f 6f 6c 65 61 |nuExists|: boolea|
|000005e0| 6e 3b 0d 0d 20 20 20 20 | 20 20 42 45 47 49 4e 0d |n;.. | BEGIN.|
|000005f0| 20 20 20 20 20 20 20 20 | 57 49 54 48 20 70 6c 69 | |WITH pli|
|00000600| 73 74 5e 20 44 4f 0d 20 | 20 20 20 20 20 20 20 20 |st^ DO. | |
|00000610| 20 42 45 47 49 4e 0d 20 | 20 20 20 20 20 20 20 20 | BEGIN. | |
|00000620| 20 43 41 53 45 20 72 65 | 71 75 65 73 74 20 4f 46 | CASE re|quest OF|
|00000630| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 67 65 74 |. | get|
|00000640| 50 52 4c 58 49 6e 66 6f | 3a 0d 20 20 20 20 20 20 |PRLXInfo|:. |
|00000650| 20 20 20 20 20 20 20 20 | 42 45 47 49 4e 0d 20 20 | |BEGIN. |
|00000660| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 61 74 61 | | data|
|00000670| 5b 31 5d 20 3a 3d 20 31 | 3b 20 7b 6e 75 6d 62 65 |[1] := 1|; {numbe|
|00000680| 72 20 6f 66 20 70 72 65 | 64 69 63 61 74 65 73 20 |r of pre|dicates |
|00000690| 64 65 66 69 6e 65 64 7d | 0d 20 20 20 20 20 20 20 |defined}|. |
|000006a0| 20 20 20 20 20 20 20 64 | 61 74 61 5b 32 5d 20 3a | d|ata[2] :|
|000006b0| 3d 20 65 76 65 6e 74 73 | 56 65 72 73 69 6f 6e 3b |= events|Version;|
|000006c0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 45 |. | E|
|000006d0| 4e 44 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ND;. | |
|000006e0| 69 6e 69 74 69 61 6c 69 | 73 65 70 72 65 64 69 63 |initiali|sepredic|
|000006f0| 61 74 65 3a 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ate:. | |
|00000700| 20 20 20 43 41 53 45 20 | 69 64 20 4f 46 0d 20 20 | CASE |id OF. |
|00000710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 3a | | 1:|
|00000720| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000730| 20 20 20 42 45 47 49 4e | 0d 20 20 20 20 20 20 20 | BEGIN|. |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 73 20 3a 3d 20 | | s := |
|00000750| 27 73 79 73 74 65 6d 24 | 63 6f 75 6e 74 24 68 69 |'system$|count$hi|
|00000760| 67 68 24 6c 65 76 65 6c | 24 65 76 65 6e 74 73 27 |gh$level|$events'|
|00000770| 3b 20 7b 6e 61 6d 65 7d | 0d 20 20 20 20 20 20 20 |; {name}|. |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 20 64 61 74 61 5b | | data[|
|00000790| 31 5d 20 3a 3d 20 31 3b | 20 7b 61 72 69 74 79 20 |1] := 1;| {arity |
|000007a0| 31 20 2d 20 63 6f 75 6e | 74 7d 0d 20 20 20 20 20 |1 - coun|t}. |
|000007b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 61 74 | | dat|
|000007c0| 61 5b 32 5d 20 3a 3d 20 | 6c 6f 6e 67 69 6e 74 28 |a[2] := |longint(|
|000007d0| 6e 65 77 48 61 6e 64 6c | 65 28 73 69 7a 65 6f 66 |newHandl|e(sizeof|
|000007e0| 28 6c 6f 6e 67 69 6e 74 | 29 29 29 3b 0d 20 20 20 |(longint|)));. |
|000007f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|00000800| 6f 6e 67 69 6e 74 48 28 | 64 61 74 61 5b 32 5d 29 |ongintH(|data[2])|
|00000810| 5e 5e 20 3a 3d 20 30 3b | 0d 20 20 20 20 20 20 20 |^^ := 0;|. |
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 6c 6c 62 | | callb|
|00000830| 61 63 6b 72 65 71 75 65 | 73 74 20 3a 3d 20 73 65 |ackreque|st := se|
|00000840| 6e 64 45 76 65 6e 74 73 | 3b 20 7b 67 65 74 20 70 |ndEvents|; {get p|
|00000850| 72 6f 6c 6f 67 20 74 6f | 20 70 61 73 73 20 72 61 |rolog to| pass ra|
|00000860| 77 20 65 76 65 6e 74 73 | 0d 20 20 20 20 20 20 20 |w events|. |
|00000870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000890| 20 20 20 20 20 20 20 20 | 20 20 20 74 6f c9 20 7d | | to. }|
|000008a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000008b0| 20 20 20 63 61 6c 6c 62 | 61 63 6b 64 61 74 61 5b | callb|ackdata[|
|000008c0| 31 5d 20 3a 3d 20 6f 72 | 64 28 40 65 76 65 6e 74 |1] := or|d(@event|
|000008d0| 43 6f 75 6e 74 65 72 29 | 3b 20 7b 74 68 69 73 20 |Counter)|; {this |
|000008e0| 66 75 6e 63 74 69 6f 6e | 20 28 6e 6f 74 65 0d 20 |function| (note. |
|000008f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000920| 20 20 20 20 20 20 20 20 | 20 69 74 73 20 70 61 72 | | its par|
|00000930| 61 6d 65 74 65 72 20 70 | 61 73 73 69 6e 67 0d 20 |ameter p|assing. |
|00000940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000970| 20 20 20 20 20 20 20 20 | 20 73 63 68 65 6d 65 29 | | scheme)|
|00000980| 20 7d 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|00000990| 20 20 20 20 20 63 61 6c | 6c 62 61 63 6b 64 61 74 | cal|lbackdat|
|000009a0| 61 5b 32 5d 20 3a 3d 20 | 64 61 74 61 5b 32 5d 3b |a[2] := |data[2];|
|000009b0| 20 7b 74 68 69 73 20 77 | 69 6c 6c 20 62 65 20 74 | {this w|ill be t|
|000009c0| 68 65 20 27 6d 79 44 61 | 74 61 27 20 70 61 73 73 |he 'myDa|ta' pass|
|000009d0| 65 64 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ed. | |
|000009e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a00| 20 20 74 6f 20 65 76 65 | 6e 74 43 6f 75 6e 74 65 | to eve|ntCounte|
|00000a10| 72 7d 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r}. | |
|00000a20| 20 20 20 20 20 63 61 6c | 6c 62 61 63 6b 28 65 6e | cal|lback(en|
|00000a30| 74 72 79 70 6f 69 6e 74 | 29 3b 0d 20 20 20 20 20 |trypoint|);. |
|00000a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 45 4e 44 | | END|
|00000a50| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00000a60| 20 20 4f 54 48 45 52 57 | 49 53 45 0d 20 20 20 20 | OTHERW|ISE. |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 72 | | er|
|00000a80| 72 6f 72 73 74 72 28 27 | 70 72 65 64 69 63 61 74 |rorstr('|predicat|
|00000a90| 65 20 69 6e 64 65 78 20 | 6f 75 74 20 6f 66 20 72 |e index |out of r|
|00000aa0| 61 6e 67 65 20 61 74 20 | 69 6e 69 74 69 61 6c 69 |ange at |initiali|
|00000ab0| 73 65 27 2c 20 70 6c 69 | 73 74 29 3b 0d 20 20 20 |se', pli|st);. |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 45 4e 44 3b 0d | | END;.|
|00000ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 6c 6c | | call|
|00000ae0| 70 72 65 64 69 63 61 74 | 65 3a 0d 20 20 20 20 20 |predicat|e:. |
|00000af0| 20 20 20 20 20 20 20 20 | 20 42 45 47 49 4e 0d 20 | | BEGIN. |
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 65 74 | | det|
|00000b10| 65 72 6d 69 6e 61 74 65 | 20 3a 3d 20 74 72 75 65 |erminate| := true|
|00000b20| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00000b30| 43 41 53 45 20 69 64 20 | 4f 46 0d 20 20 20 20 20 |CASE id |OF. |
|00000b40| 20 20 20 20 20 20 20 20 | 20 20 20 31 3a 0d 20 20 | | 1:. |
|00000b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b60| 42 45 47 49 4e 0d 20 20 | 20 20 20 20 20 20 20 20 |BEGIN. | |
|00000b70| 20 20 20 20 20 20 20 20 | 73 75 63 63 65 73 73 66 | |successf|
|00000b80| 75 6c 20 3a 3d 20 72 65 | 74 75 72 6e 56 61 6c 75 |ul := re|turnValu|
|00000b90| 65 28 31 2c 20 6c 6f 6e | 67 69 6e 74 48 28 64 61 |e(1, lon|gintH(da|
|00000ba0| 74 61 5b 32 5d 29 5e 5e | 2c 20 70 6c 69 73 74 29 |ta[2])^^|, plist)|
|00000bb0| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00000bc0| 20 20 20 20 45 4e 44 3b | 0d 20 20 20 20 20 20 20 | END;|. |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 4f 54 48 45 52 57 49 | | OTHERWI|
|00000be0| 53 45 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |SE. | |
|00000bf0| 20 20 20 20 20 65 72 72 | 6f 72 73 74 72 28 27 70 | err|orstr('p|
|00000c00| 72 65 64 69 63 61 74 65 | 20 69 6e 64 65 78 20 6f |redicate| index o|
|00000c10| 75 74 20 6f 66 20 72 61 | 6e 67 65 20 61 74 20 63 |ut of ra|nge at c|
|00000c20| 61 6c 6c 27 2c 20 70 6c | 69 73 74 29 3b 0d 20 20 |all', pl|ist);. |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 45 4e 44 3b | | END;|
|00000c40| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 45 |. | E|
|00000c50| 4e 44 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ND;. | |
|00000c60| 63 6c 6f 73 65 70 72 65 | 64 69 63 61 74 65 3a 0d |closepre|dicate:.|
|00000c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 42 45 | | BE|
|00000c80| 47 49 4e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |GIN. | |
|00000c90| 20 20 43 41 53 45 20 69 | 64 20 4f 46 0d 20 20 20 | CASE i|d OF. |
|00000ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 3a 20 | | 1: |
|00000cb0| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00000cc0| 20 20 4f 54 48 45 52 57 | 49 53 45 0d 20 20 20 20 | OTHERW|ISE. |
|00000cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 72 | | er|
|00000ce0| 72 6f 72 73 74 72 28 27 | 70 72 65 64 69 63 61 74 |rorstr('|predicat|
|00000cf0| 65 20 69 6e 64 65 78 20 | 6f 75 74 20 6f 66 20 72 |e index |out of r|
|00000d00| 61 6e 67 65 20 61 74 20 | 63 6c 6f 73 65 27 2c 20 |ange at |close', |
|00000d10| 70 6c 69 73 74 29 3b 0d | 20 20 20 20 20 20 20 20 |plist);.| |
|00000d20| 20 20 20 20 20 20 45 4e | 44 3b 0d 20 20 20 20 20 | EN|D;. |
|00000d30| 20 20 20 20 20 20 20 20 | 20 45 4e 44 3b 0d 20 20 | | END;. |
|00000d40| 20 20 20 20 20 20 20 20 | 20 20 4f 54 48 45 52 57 | | OTHERW|
|00000d50| 49 53 45 20 65 72 72 6f | 72 73 74 72 28 27 75 6e |ISE erro|rstr('un|
|00000d60| 6b 6e 6f 77 6e 20 63 61 | 6c 6c 20 74 6f 20 65 78 |known ca|ll to ex|
|00000d70| 74 65 72 6e 61 6c 20 70 | 72 6f 63 65 64 75 72 65 |ternal p|rocedure|
|00000d80| 73 27 2c 20 70 6c 69 73 | 74 29 3b 0d 20 20 20 20 |s', plis|t);. |
|00000d90| 20 20 20 20 20 20 45 4e | 44 3b 0d 20 20 20 20 20 | EN|D;. |
|00000da0| 20 20 20 20 20 45 4e 44 | 3b 0d 20 20 20 20 20 20 | END|;. |
|00000db0| 45 4e 44 3b 0d 45 4e 44 | 2e 0d 00 00 00 00 00 00 |END;.END|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 01 00 00 00 01 30 | 00 00 00 30 00 00 00 32 |.......0|...0...2|
|00000e10| 49 54 65 78 74 28 74 68 | 65 48 61 6e 64 6c 65 2c |IText(th|eHandle,|
|00000e20| 20 74 65 78 74 4f 66 41 | 74 6f 6d 69 63 4c 69 73 | textOfA|tomicLis|
|00000e30| 0a 63 6f 75 6e 74 48 4c | 45 2e 70 74 02 00 00 00 |.countHL|E.pt....|
|00000e40| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|00000e50| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 a9 c7 3a 32 00 00 | 00 00 00 00 01 62 44 49 |....:2..|.....bDI|
|00000e80| 74 65 6d 28 64 69 61 6c | 6f 67 50 74 72 28 64 61 |tem(dial|ogPtr(da|
|00000e90| 74 61 5b 32 5d 29 2c 20 | 31 2c 20 6a 2c 20 74 68 |ta[2]), |1, j, th|
|00000ea0| 65 48 61 6e 64 6c 65 2c | 20 74 68 65 52 65 63 74 |eHandle,| theRect|
|00000eb0| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|00000ec0| 20 20 20 20 20 20 20 20 | 20 49 46 20 74 65 78 74 | | IF text|
|00000ed0| 28 33 2c 20 70 6c 69 73 | 74 29 20 3d 20 27 27 20 |(3, plis|t) = '' |
|00000ee0| 54 48 45 4e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |THEN. | |
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 73 65 74 | | set|
|00000f00| 00 00 00 2c 01 02 80 08 | 00 00 05 31 2e 30 2e 32 |...,....|...1.0.2|
|00000f10| 1f 44 6f 63 75 6d 65 6e | 74 73 20 66 6f 72 20 4f |.Documen|ts for O|
|00000f20| 70 65 6e 20 50 72 6f 6c | 6f 67 20 31 2e 30 2e 32 |pen Prol|og 1.0.2|
|00000f30| 00 00 01 00 00 00 01 30 | 00 00 00 30 00 00 00 32 |.......0|...0...2|
|00000f40| 00 46 73 f8 19 b6 00 00 | 00 1c 00 32 00 00 76 65 |.Fs.....|...2..ve|
|00000f50| 72 73 00 00 00 0a 00 01 | ff ff 00 00 00 00 00 46 |rs......|.......F|
|00000f60| 73 8c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s.......|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+